package com.zb;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.zb.model.User;

public class HelloSpring {

	public static void main(String[] args) {
		
		ClassPathXmlApplicationContext context = 
				
				new ClassPathXmlApplicationContext("classpath:spring/applicationContext.xml");
	
		User user  =(User)context.getBean(User.class);
		
		System.out.println(user.getId()+"----"+user.getUsername());
		
	    
	    System.out.println(user.getUsers().get(0).getAddress().getAddress());
	    
	    
	    System.out.println(user.getMap().get("hello"));
	    
		
	}
}
